import time

def get_partner_info(mongo_instance, soup, cid, company):
    print('start 主要成员数据*******')
    imps = soup.find('div', id="_container_staff").find('tbody').find_all('tr') if soup.find('div',
                                                                                             id="_container_staff") else []
    items = {}
    for people in imps:
        ahrefs = people.find_all('a') if people.find('a') else []
        if ahrefs:
            partner_name = ahrefs[0].text
            try:
                company_num = ahrefs[1].text.strip().strip('>')
                tds = people.find_all('td')
                partner_duty = tds[2].text
                items = {'company': company, 'company_id': cid, 'partner_duty': partner_duty,
                         'partner_name': partner_name,
                         'company_num': company_num}
                items['create_at'] = int(time.time())
                items['update_at'] = items['create_at']
                mongo_instance.partner.update({'company_id': cid}, items, True)

            except IndexError as e:
                print(e, cid, company)

    print('success 主要成员数据*******')